<?php

// Define path to application directory
defined('APPLICATION_PATH')
    || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../../application'));

// Define application environment
defined('APPLICATION_ENV')
    || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));

// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
    realpath(APPLICATION_PATH . '/../library'),
    realpath(APPLICATION_PATH . 'models'),
    get_include_path(),
)));

require_once 'Zend/Log.php';
require_once 'Zend/Log/Writer/Stream.php';
require_once 'Zend/Registry.php';

$stream = @fopen(APPLICATION_PATH . '/logs/log.txt', 'a', false);
    if (!$stream) {
    $stream = 'php://output';
    }
    $writer = new Zend_Log_Writer_Stream($stream);
    $log = new Zend_Log($writer);
    Zend_Registry::set('log', $log);
    $log->info('#####'); 

/** Zend_Application */
/*require_once 'Zend/Application.php';  

// Create application, bootstrap, and run
$application = new Zend_Application(
    APPLICATION_ENV, 
    APPLICATION_PATH . '/configs/application.ini'
);

$application->bootstrap();*/
            //->run();
            
/*$p = new Plus_Model_Country_Test();
var_dump($p);*/

require_once 'Mapper/Abstract.php';
require_once 'Mapper/DbTable/Abstract.php';
require_once 'Model/Abstract.php';
require_once 'Model/DbTable/Abstract.php';